package com.basic.boot.common.reqlimit;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @author cherrish
 * @time 2019-03-14 11:30
 * @name AnRateLimiter
 * @desc:
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface AnRateLimiter {
    double permitsPerSecond() default Double.MAX_VALUE;
    long timeOut() default 0;
    TimeUnit timeOutUnit() default TimeUnit.MILLISECONDS;
}
